'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.resources('hello','/hello',controller.hello);
  router.post('/login',controller.login.login);
  router.resources('logins','/logins',controller.login);
  //图片上传
  router.post('/img',app.middleware.checktoken(),controller.img.index)
  router.post('/imgs',controller.img.get)
};
